package com.zhangzhan.gulimallseckill.feign;

import com.zhangzhan.gulimallseckill.tos.SkuInfoTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;
import java.util.Map;

/**
 * @author 张一恒
 * @version 1.0
 * @description:
 * @date 2024/7/4 21:07
 */
@FeignClient("gulimall-product")
public interface ProductFeignService
{

    @RequestMapping(value = "/gulimallproduct/skuinfo/getInfoByIds",method = RequestMethod.POST)
    //@RequiresPermissions("gulimallproduct:skuinfo:info")
    public Map<Long, SkuInfoTo> getInfoByIds(@RequestBody List<Long> skuIds);
}
